﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Db;

namespace Controller
{
    public class CinemaCtr
    {
        CinemaDb cinemaDb = new CinemaDb();
        



        public List<Cinema> GetAllCinemas()
        {
            return cinemaDb.GetAllCinemas();
        }

        public Cinema GetCinemaByID(int id)
        {
            Cinema cin = null;
            if (id > 0)
            {
                cin = cinemaDb.GetCinemaByID(id);
            }
            return cin;
        }

        public Cinema GetCinemaByTitle(string title)
        {
            return cinemaDb.GetCinemaByTitle(title);
        }
    }
}
